#ifndef __REDIS_H__
#define __REDIS_H__

#include<string>
#include<hiredis/hiredis.h>
class Redis{
private:
    redisContext * m_redisContext;
    Redis();
public:
    static Redis* GetInstance(){
        static Redis redis;
        return &redis;
    }
    bool Connect(const std::string& ip, unsigned short port) ;
    ~Redis();
    bool Set(const std::string &,const std::string&);
    std::string Get(const std::string&);
};
#endif